

package com.yungu.swift.report.controller;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.service.DriverOnworkRateDayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Zerrion
 * @version 1.0
 * @description 统计报表_司机出车率_天-控制器
 * @date 2018/6/1 15:30
 */
@RestController
@Api(value = "司机效率统计", tags = "司机效率统计")
public class DriverOnworkRateDayCtrl {

    @Autowired
    private DriverOnworkRateDayService driverOnworkRateDayService;

    @PostMapping("/report/driverOnworkRate/queryPage")
    @ApiOperation(value = "司机效率统计数据", httpMethod = "POST")
    public ResponseData<Map<String, Object>> queryPageIndex(@RequestBody AdminReportParam reportParam) {
        return driverOnworkRateDayService.queryPage(reportParam);
    }
}
